package com.ruoyi.service;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.domain.Ridgepole;
import com.ruoyi.fallback.RidServiceFallbackFactory;
import com.ruoyi.fallback.TeneMentServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-information", path = "tenement", contextId = "TeneMentService",fallbackFactory = TeneMentServiceFallbackFactory.class)
public interface TeneMentService {

    @GetMapping(value = "/count/{id}")
    AjaxResult getCount(@PathVariable("id") Long id);

    @GetMapping(value = "/getTenesByRidId/{Ridid}")
    AjaxResult getTenesByRidId(@PathVariable("Ridid") Long Ridid);

}
